package com.kaiwukj.android.ufamily.mvp.http.entity.result;

import com.kaiwukj.android.ufamily.mvp.http.entity.base.BaseBean;

public class MyAddressResult extends BaseBean {

    /**
     * "id": 15,
     * "userId": 12,
     * "consigneeName": "石冰驰",
     * "gender": 1,
     * "phone": "15692277735",
     * "sysCommunityId": 12,
     * "communityName": "Yul7n",
     * "detailAddress": "开物小区3",
     * "buildingNumber": "909",
     * "whetherDefault:1
     */

    private Integer id;
    private Integer userId;
    private String consigneeName;
    private Integer gender;
    private String phone;
    private Integer sysCommunityId;
    private String communityName;
    private String detailAddress;
    private String buildingNumber;
    private Integer whetherDefault;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getConsigneeName() {
        return consigneeName;
    }

    public void setConsigneeName(String consigneeName) {
        this.consigneeName = consigneeName;
    }

    public Integer getGender() {
        return gender == null ? 2 : gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public boolean isMan() {
        return getGender() == 1;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getSysCommunityId() {
        return sysCommunityId == null ? -1 : sysCommunityId;
    }

    public void setSysCommunityId(Integer sysCommunityId) {
        this.sysCommunityId = sysCommunityId;
    }

    public String getCommunityName() {
        return communityName;
    }

    public void setCommunityName(String communityName) {
        this.communityName = communityName;
    }

    public String getDetailAddress() {
        return detailAddress;
    }

    public void setDetailAddress(String detailAddress) {
        this.detailAddress = detailAddress;
    }

    public String getBuildingNumber() {
        return buildingNumber;
    }

    public void setBuildingNumber(String buildingNumber) {
        this.buildingNumber = buildingNumber;
    }

    public Integer getWhetherDefault() {
        return whetherDefault == null ? 0 : whetherDefault;
    }

    public void setWhetherDefault(Integer whetherDefault) {
        this.whetherDefault = whetherDefault;
    }

    public boolean isDefault() {
        return getWhetherDefault() == 1;
    }
}
